<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>Demo01</h1>
<br>
<span th:text="${msg}"></span>
<br>
<span th:text="hello"></span>
<br>
用户名<input type="text" name="username" th:value="${user.userName}"><br>
生日<input type="text" name="birthday" th:value="${#dates.format(time,'yyyy-MM-dd HH:mm:ss')}"><br>
字符串处理<input type="text" name="username" th:value="${#strings.substring(msg,4)}"><br>
<table BORDER="2">
    <tr th:each="user : ${list}">
       <td th:text="${user.userName}"></td>
       <td th:text="${user.name}"></td>
       <td th:text="${user.age}"></td>
    </tr>
</table>

</body>
</html>